<!-- @format -->

<template>
    <div class="ma-content-block  p-4" style="height: 88vh">
        <div class="flex" style="margin-bottom:12px">
            <div>结算状态：</div>
            <a-radio-group v-model="form.is_jiesuan" :options="plainOptions" />
        </div>
		<div class="flex">
            <a-tooltip content="请选择客户名称">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.dept_id" :filter-option="filterOption" :options="dept_list" :field-names="{ label: 'name', value: 'id' }" allow-clear allow-search
                        placeholder="请选择客户名称" />
            </a-tooltip>
            <a-tooltip content="请选择付款公司">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.paydept_id" :filter-option="filterOption" :options="paydept_list" :field-names="{ label: 'name', value: 'id' }" allow-clear allow-search
                        placeholder="请选择付款公司" />
            </a-tooltip>
            <a-tooltip content="请选择发站">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.sending_station" :filter-option="filterOption" :options="sendList" :field-names="{ label: 'name', value: 'id' }" allow-clear allow-search
                        placeholder="请选择发站" />
            </a-tooltip>
            <a-tooltip content="请选择到站">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.come_address" :filter-option="filterOption" :options="sendList" :field-names="{ label: 'name', value: 'id' }" allow-clear allow-search
                        placeholder="请选择到站" />
            </a-tooltip>
            <a-tooltip content="请选择运输方式">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.transport_type" :options="transportList" :field-names="{ label: 'title', value: 'key' }" allow-clear allow-search
                        placeholder="请选择运输方式" />
            </a-tooltip>
            <a-tooltip content="请选择到达时间">
                <a-range-picker
                    v-model="form.come_time"
                    allow-clear
                    show-time
                    :time-picker-props="{ defaultValue: ['00:00:00', '23:59:59'] }"
                    style="width:calc((100% - 60px) / 6);margin-bottom:12px"
                />
            </a-tooltip>
            
            
        </div>
        <div class="flex">
            <a-tooltip content="请输入运单号">
                <a-input v-model="form.yundanhao" placeholder="请输入运单号" allow-clear style="width:calc((100% - 60px) / 6);margin-bottom:12px;margin-right:12px;" />
            </a-tooltip>
            <a-tooltip content="请选择品名">
                <a-select style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" v-model="form.goods_id" :filter-option="filterOption" :options="goods_list" :field-names="{ label: 'name', value: 'id' }" allow-clear allow-search
                        placeholder="请选择品名" />
            </a-tooltip>
            <a-tooltip content="请输入车号">
                <a-input v-model="form.car_no" placeholder="请输入车号" allow-clear style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" />
            </a-tooltip>
            <a-tooltip content="请输入箱号">
                <a-input v-model="form.box" placeholder="请输入箱号" allow-clear style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" />
            </a-tooltip>
            <a-tooltip content="请输入原票号">
                <a-input v-model="form.ticket_number" placeholder="请输入原票号" allow-clear style="width:calc((100% - 60px) / 6);margin-right:12px;margin-bottom:12px" />
            </a-tooltip>
            <a-tooltip content="请选择办理时间">
                <a-range-picker
                    v-model="form.process_time"
                    allow-clear
                    style="width:calc((100% - 60px) / 6);margin-bottom:12px"
                />
            </a-tooltip>
            
        </div>
        <div class="flex" style="margin-bottom:12px">
            <div class='flex'>
                <a-button type="primary"  @click="handleSearch" style="margin-right:16px">搜索</a-button>
                <a-button  @click="handleResetting" style="margin-right:16px">重置</a-button>
                <a-button type="primary"  @click="handleExports"> 导出</a-button>
            </div>
        </div>
        <div style="margin-bottom:12px">
            <a-button type="primary" @click="handleJieSuan"> 结算</a-button>
        </div>
        <a-table summary-text="合计" summary
        ref="exportTableRef" :columns="columns" 
        :column-resizable="true" :data="tableData" :scroll="{x:2000, y:415 }"
        :table-layout-fixed="true" :bordered="{wrapper: true, cell: true}" :pagination="false"
            >
            <template #yundanhao="{record}">
                <div>{{ record.prediction?.yundanhao }} </div>
            </template>
            <template #dept_id="{record}">
                <a-tooltip :content="record.dept?.name">
                    <div class="ellipsis">{{ record.dept?.name }}</div>
                </a-tooltip>
            </template>
            <template #come_time="{record}">
                <a-tooltip :content="record.prediction?.come_time">
                    <div class="ellipsis">{{ record.prediction?.come_time }}</div>
                </a-tooltip>
            </template>
            <template #ticket_number="{record}">
                <a-tooltip :content="record.prediction?.ticket_number">
                    <div class="ellipsis">{{ record.prediction?.ticket_number }}</div>
                </a-tooltip>
            </template>
            <template #goods_name="{record}">
                <a-tooltip :content="record.prediction?.goods_name">
                    <div class="ellipsis">{{ record.prediction?.goods_name }}</div>
                </a-tooltip>
            </template>
            <template #sending_station="{record}">
                <a-tooltip :content="handelDaofazhan(record.prediction?.sending_station)">
                    <div class="ellipsis">{{ handelDaofazhan(record.prediction?.sending_station) }}</div>
                </a-tooltip>
            </template>
            <template #come_address="{record}">
                <a-tooltip :content="handelDaofazhan(record.prediction?.come_address)">
                    <div class="ellipsis">{{ handelDaofazhan(record.prediction?.come_address) }}</div>
                </a-tooltip>
            </template>
            <template #car_no="{record}">
                <a-tooltip :content="record.prediction?.car_type  + ' ' + record.prediction?.car_no">
                    <div class="ellipsis">{{ record.prediction?.car_type  + ' '}}{{ record.prediction?.car_no }}</div>
                </a-tooltip>
            </template>
            <template #transport_type="{record}">
                <div>{{ record.prediction?.transport_type == 1?'集装箱':record.prediction?.transport_type == 2?'整车':'批量快运' }}</div>
            </template>
            <template #number="{record}">
                <a-tooltip :content="record.prediction?.number ">
                    <div class="ellipsis">{{ record.prediction?.number  }}</div>
                </a-tooltip>
            </template>
            <template #hz_weight="{record}">
                <a-tooltip :content="record.prediction?.hz_weight ">
                    <div class="ellipsis">{{ record.prediction?.hz_weight  }}</div>
                </a-tooltip>
            </template>
            <template #bz_weight="{record}">
                <a-tooltip :content="record.prediction?.bz_weight ">
                    <div class="ellipsis">{{ record.prediction?.bz_weight  }}</div>
                </a-tooltip>
            </template>
            <template #cyr_weight="{record}">
                <a-tooltip :content="record.prediction?.cyr_weight ">
                    <div class="ellipsis">{{ record.prediction?.cyr_weight  }}</div>
                </a-tooltip>
            </template>

            <template #jf_weight="{record}">
                <a-tooltip :content="record.prediction?.jf_weight ">
                    <div class="ellipsis">{{ record.prediction?.jf_weight  }}</div>
                </a-tooltip>
            </template>
            <template #process_time="{record}">
                <a-tooltip :content="record.prediction?.process_time ">
                    <div class="ellipsis">{{ record.prediction?.process_time  }}</div>
                </a-tooltip>
            </template>
            <template #box="{record}">
                <a-tooltip :content="record.prediction?.box ">
                    <div class="ellipsis">{{ record.prediction?.box  }}</div>
                </a-tooltip>
            </template>
            <template #peisong_address="{record}">
                <a-tooltip :content="record.prediction?.peisong_address_id != 0?record.prediction?.peisong_address?.address:''">
                    <div class="ellipsis">{{ record.prediction?.peisong_address_id != 0?record.prediction?.peisong_address?.address:''  }}</div>
                </a-tooltip>
            </template>
            <template #lirun_sui="{record}">
                <a-tooltip :content="record.lirun_sui">
                    <div class="ellipsis">{{ record.lirun_sui  }}</div>
                </a-tooltip>
            </template>
            <template #lirun="{record}">
                <a-tooltip :content="record.lirun">
                    <div class="ellipsis">{{ record.lirun  }}</div>
                </a-tooltip>
            </template>
            <template #summary-cell="{ column, record }">
                {{
                    column.dataIndex == "xuhao" ? "合计" :
                    column.dataIndex == "lirun_sui"  ? record[column.dataIndex].toFixed(2):
                    column.dataIndex == "lirun"  ? record[column.dataIndex].toFixed(2):
                    column.dataIndex == "total_price"  ? record[column.dataIndex].toFixed(2):
                    ''
                }}
            </template>
        </a-table>
        
        <div style="padding-bottom: 12px"></div>
        <div class="flex justify_end">
            <a-pagination :total="zongSize" show-page-size :page-size-options="[10,20,50,100,500]" @change="handlePageChange" @page-size-change="handlePageSizeChange" />
        </div>
        <!-- 加载中... -->
        <div
            v-if="loading"
            style="
            position: fixed;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            display: flex;
            top: 0;
            left: 0;
            justify-content: center;
            align-items: center;
            "
        >
            <a-spin dot :size="10" />
        </div>
        <a-modal :mask-closable="false"  v-model:visible="visible" title="结算" :width="1600" :footer="false"  @cancel="handleCancel">
            <railwaySettleme v-if="visible" :form="form" @shuaxin="handelShuaxin"></railwaySettleme>
        </a-modal>
    </div>
</template>
<script setup>
import { ref, reactive, onMounted,onActivated } from "vue";
import { request } from "@/utils/request.js";
import { Message } from "@arco-design/web-vue";
import { Notification } from "@arco-design/web-vue";
import {dateFormat} from '@/utils/util.js'
import railwaySettleme from "./components/railwaySettleme.vue"
import { saveAs } from 'file-saver';
import * as XLSX from 'xlsx';
import { ElMapExportTable } from "table-excel";
import tool from "@/utils/tool";
import * as common from "@/utils/common";
import { pinyin } from "pinyin-pro"
import commonApi from "@/api/common";
import { useRouter } from 'vue-router'
const router = useRouter()
const loading = ref(false)
const fadaoList = ref([
    {key:1,value:'集装箱'},
    {key:2,value:'整车'},
])
const visible = ref(false)
const zongSize = ref(100)
const plainOptions = ref([
    {label:'未结算',value:0},
    {label:'已结算',value:1},
    {label:'全部',value:2},
])
const sendList = ref([])
const goods_list = ref([])
const transportList = ref()
const newDate = new Date();
const rowId = ref([])
// 当天
const newDay = newDate.getDate();  
// 当年
const newYear = newDate.getFullYear();
// 当月
const newMonth = (newDate.getMonth() + 1)>9?(newDate.getMonth() + 1):'0' + (newDate.getMonth() + 1);
const price_typeList = ([])
const tableData = ref([])
const dept_list = ref([])
const paydept_list = ref([])
const exportData = ref([])
const filterOption = (v,option)=>{
  return option.keywords.some(keywords=>keywords.includes(v))
}
const tableColumns = ref([
    {title:`${newYear}年${newMonth}月${newDay}日`,children:[
        {title:'序号',dataIndex:'xuhao'},
        {title:'运单号',dataIndex:'yundanhao'},
        {title:'客户名称',dataIndex:'dept_name'},
        {title:'到达时间',dataIndex:'come_time'},
        {title:'原票号',dataIndex:'ticket_number'},
        {title:'车号',dataIndex:'car_no'},
        {title:'运输方式',dataIndex:'transport_type'},
        {title:'发站',dataIndex:'sending_station'},
        {title:'到站',dataIndex:'come_address'},
        {title:'集装箱',dataIndex:'box'},
        {title:'品名',dataIndex:'goods_name'},
        {title:'件数',dataIndex:'number'},
        {title:'货重',dataIndex:'hz_weight'},
        {title:'办理时间',dataIndex:'process_time'},
        {title:'配送地址',dataIndex:'peisong_address'},
        {title:'收入',children:[
            {
                title:'到站取送车费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srdz_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srdz_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srdz_suie'
                    },
                ]
            },
            {
                title:'货车延期占用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srhc_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srhc_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srhc_suie'
                    },
                ]
            },
            {
                title:'集装箱延期使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srjzx_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srjzx_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srjzx_suie'
                    },
                ]
            },
            {
                title:'印花税',
                children:[
                    {
                        title:'合计',
                        dataIndex:'sryh_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'sryh_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'sryh_suie'
                    },
                ]
            },
            {
                title:'发站取送车费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srfz_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srfz_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srfz_suie'
                    },
                ]
            },
            {
                title:'集装箱使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srjzxsy_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srjzxsy_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srjzxsy_suie'
                    },
                ]
            },
            {
                title:'篷布使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srpb_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srpb_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srpb_suie'
                    },
                ]
            },
            {
                title:'运杂费迟交金',
                children:[
                    {
                        title:'合计',
                        dataIndex:'sryzf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'sryzf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'sryzf_suie'
                    },
                ]
            },
            {
                title:'干线运输费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srgxf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srgxf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srgxf_suie'
                    },
                ]
            },
            {
                title:'报价费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'srbjf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srbjf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'srbjf_suie'
                    },
                ]
            }
        ]},
        {title:'清算',children:[
            {
                title:'到站取送车费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsdz_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsdz_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsdz_suie'
                    },
                ]
            },
            {
                title:'货车延期占用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qshc_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qshc_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qshc_suie'
                    },
                ]
            },
            {
                title:'集装箱延期使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsjzx_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsjzx_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsjzx_suie'
                    },
                ]
            },
            {
                title:'印花税',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsyh_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsyh_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsyh_suie'
                    },
                ]
            },
            {
                title:'发站取送车费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsfz_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsfz_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsfz_suie'
                    },
                ]
            },
            {
                title:'集装箱使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsjzxsy_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsjzxsy_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsjzxsy_suie'
                    },
                ]
            },
            {
                title:'篷布使用费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qspb_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qspb_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qspb_suie'
                    },
                ]
            },
            {
                title:'运杂费迟交金',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsyzf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsyzf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsyzf_suie'
                    },
                ]
            },
            {
                title:'干线运输费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsgxf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsgxf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsgxf_suie'
                    },
                ]
            },
            {
                title:'报价费',
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsbjf_heji'
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsbjf_buhansui'
                    },
                    {
                        title:'税额',
                        dataIndex:'qsbjf_suie'
                    },
                ]
            }
        ]},
        {title:'利润(含税)',dataIndex:'lirun_sui'},
        {title:'利润(不含税)',dataIndex:'lirun'},
        {title:'合计金额',dataIndex:'total_price'},
    ]}
    
])
const form = ref({
    detail_type:3,
    is_jiesuan:0,    // 0 未结算  1 已结束 2 全部 
    dept_name:'',   // 货主名称
    dept_id:'',
    paydept_id:'',
    page:1,
    pageSize:10,
    goods_id:'',   // 品名
    box:'',   // 集装箱
    car_no:'',   // 车号
    ticket_number:'',   // 原票号
    sending_station:'',  // 发站
    come_address:'',   // 到站
    transport_type:'',   // 运输方式
    come_time:[],   // 到达时间
    process_time:[],   // 办理时间
})

const handelShuaxin = ()=>{
    visible.value = false
    form.value.page = 1
    handleDataList()
}
const handleJieSuan = ()=>{
    visible.value = true
}
const handleCancel = ()=>{
    visible.value = false
}
const handleOk = ()=>{

}
const handlePageChange = (e)=>{
    form.value.page = e
    handleDataList()
}
const handlePageSizeChange = (e)=>{
    form.value.page = 1
    form.value.pageSize = e
    handleDataList()
}
const handelDaofazhan = (id)=>{
    let name = ''
    sendList.value.map((v,i)=>{
        if(v.id == id){
            name = v.name
        }
    })
    return name
}
const handleExports = ()=> {
      const instance = new ElMapExportTable(
        {
            column:tableColumns.value,
            data:exportData.value,
            setRowStyle({ data, columnIndex, rowIndex, type }) {
            if (type === "main") {
              return {
                height: 40,
              };
            }
          },
        },
        // {progress: progress => console.log(progress)}
      );
      instance.download("威斯腾配送结算报表");
}
const handleSearch = ()=>{
    handleDataList()
}
const handleResetting = ()=>{
    form.value = {
        detail_type:3,
        is_jiesuan:0,    // 0 未结算  1 已结束 2 全部 
        dept_name:'',   // 货主名称
        dept_id:'',
        paydept_id:'',
        goods_id:'',   // 品名
        page:1,
        pageSize:10,
        box:'',   // 集装箱
        car_no:'',   // 车号
        ticket_number:'',   // 原票号
        sending_station:'',  // 发站
        come_address:'',   // 到站
        transport_type:'',   // 运输方式
        come_time:[],   // 到达时间
        process_time:[],   // 办理时间
    }
    handleDataList()
}
const handleDeptList = ()=>{
    request({
        url: 'system/dept/remote',
        method: 'post',
        data: {
        openPage: false,
        remoteOption: {
            filter: {
            type: ['=', 2],
            status: ['=',1]
            },
            select: ["id", "name"],
            sort: { id: "desc" }
        }
        }
    }).then(res => {
        res.data.map((v,i)=>{
                v.keywords = [
                v.name,
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join(''),
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join('').toUpperCase()
                ]
        })
        dept_list.value = res.data
    })
}
const handlepayDeptList = ()=>{
    request({
        url: 'system/dept/remote',
        method: 'post',
        data: {
        openPage: false,
        remoteOption: {
            filter: {
            type: ['>', 2],
            status: ['=',1]
            },
            select: ["id", "name"],
            sort: { id: "desc" }
        }
        }
    }).then(res => {
        res.data.map((v,i)=>{
                v.keywords = [
                v.name,
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join(''),
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join('').toUpperCase()
                ]
        })
        paydept_list.value = res.data
    })
}
onMounted(()=>{
    request({
        url: 'goods/manage/index',
        method: 'get',
        params:{
            pageSize:10000,
        }
    }).then(res => {
        let _data = res.data.items
        _data.map((v,i)=>{
            v.goods_id = v.id
            v.name = v.type.name + '-' + v.name
        })
        _data.map((v,i)=>{
            v.keywords = [
            v.name,
            pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join(''),
            pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join('').toUpperCase()
            ]
        })
        goods_list.value = _data
    })
    request({
        url: 'prediction/dfz/index',
        method: 'get',
        params: {
            pageSize: 1000,
        }
    }).then(res => {
        res.data.items.map((v,i)=>{
                v.keywords = [
                v.name,
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join(''),
                pinyin(v.name,{toneType:'none',pattern:'first'}).split(' ').join('').toUpperCase()
                ]
        })
        sendList.value = res.data.items
    })
    commonApi.getDict("transport_type").then((res) => {
        transportList.value = res.data;
        console.log(transportList.value)
    });
    handleDeptList()
    handleDataList()
    handlepayDeptList()
})
onActivated(()=>{
    handleDataList()
})
const handleDataList = (obj)=>{   // 获取台账数据
        loading.value = true
        request({
            url:'/financial/costOrder/index',
            method: 'get',
            params:form.value,
        }).then(res=>{
            let _data = res.data.items
            
            _data.map((v,i)=>{
                if(!v.prediction){
                    v.prediction = v.send
                }
                v.xuhao = i + 1
                

                v.srdz_heji = 0
                v.srdz_buhansui = 0
                v.srdz_suie = 0
                v.qsdz_heji = 0
                v.qsdz_buhansui = 0
                v.qsdz_suie = 0

                v.srhc_heji = 0
                v.srhc_buhansui = 0
                v.srhc_suie = 0
                v.qshc_heji = 0
                v.qshc_buhansui = 0
                v.qshc_suie = 0

                v.srjzx_heji = 0
                v.srjzx_buhansui = 0
                v.srjzx_suie = 0
                v.qsjzx_heji = 0
                v.qsjzx_buhansui = 0
                v.qsjzx_suie = 0

                v.sryh_heji = 0
                v.sryh_buhansui = 0
                v.sryh_suie = 0
                v.qsyh_heji = 0
                v.qsyh_buhansui = 0
                v.qsyh_suie = 0

                v.srfz_heji = 0
                v.srfz_buhansui = 0
                v.srfz_suie = 0
                v.qsfz_heji = 0
                v.qsfz_buhansui = 0
                v.qsfz_suie = 0

                v.srjzxsy_heji = 0
                v.srjzxsy_buhansui = 0
                v.srjzxsy_suie = 0
                v.qsjzxsy_heji = 0
                v.qsjzxsy_buhansui = 0
                v.qsjzxsy_suie = 0

                v.srpb_heji = 0
                v.srpb_buhansui = 0
                v.srpb_suie = 0
                v.qspb_heji = 0
                v.qspb_buhansui = 0
                v.qspb_suie = 0

                v.sryzf_heji = 0
                v.sryzf_buhansui = 0
                v.sryzf_suie = 0
                v.qsyzf_heji = 0
                v.qsyzf_buhansui = 0
                v.qsyzf_suie = 0

                v.srgxf_heji = 0
                v.srgxf_buhansui = 0
                v.srgxf_suie = 0
                v.qsgxf_heji = 0
                v.qsgxf_buhansui = 0
                v.qsgxf_suie = 0

                v.srbjf_heji = 0
                v.srbjf_buhansui = 0
                v.srbjf_suie = 0
                v.qsbjf_heji = 0
                v.qsbjf_buhansui = 0
                v.qsbjf_suie = 0

                v.detail.map((vvv,iii)=>{
                    if(vvv.price_type == 6){
                        //  收入
                        v.srdz_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srdz_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srdz_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsdz_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsdz_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsdz_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 20){
                        // 收入
                        v.srhc_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srhc_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srhc_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qshc_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qshc_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qshc_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 17){
                        // 收入
                        v.srjzx_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srjzx_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srjzx_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsjzx_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsjzx_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsjzx_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 13){
                        // 收入
                        v.sryh_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.sryh_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.sryh_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsyh_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsyh_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsyh_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 7){
                        //  收入
                        v.srfz_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srfz_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srfz_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsfz_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsfz_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsfz_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 16){
                        //  收入
                        v.srjzxsy_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srjzxsy_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srjzxsy_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsjzxsy_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsjzxsy_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsjzxsy_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 5){
                        //  收入
                        v.srpb_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srpb_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srpb_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qspb_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qspb_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qspb_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 22){
                        //  收入
                        v.sryzf_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.sryzf_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.sryzf_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsyzf_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsyzf_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsyzf_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 1){
                        //  收入
                        v.srgxf_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srgxf_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srgxf_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsgxf_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsgxf_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsgxf_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                    if(vvv.price_type == 14){
                        //  收入
                        v.srbjf_heji = (vvv.pay_order_detail.pay_real_price - 0).toFixed(2) - 0
                        v.srbjf_buhansui = (vvv.pay_order_detail.no_tax_price - 0).toFixed(2) - 0
                        v.srbjf_suie = (vvv.pay_order_detail.tax_price - 0).toFixed(2) - 0
                        // 清算
                        v.qsbjf_heji = (vvv.pay_real_price - 0).toFixed(2) - 0
                        v.qsbjf_buhansui = (vvv.no_tax_price - 0).toFixed(2) - 0
                        v.qsbjf_suie = (vvv.tax_price - 0).toFixed(2) - 0
                    }
                })
                v.lirun_sui = (((v.srdz_heji - 0) + (v.srhc_heji - 0) + (v.srjzx_heji - 0) + (v.sryh_heji - 0) + (v.srfz_heji - 0) + (v.srjzxsy_heji - 0) + (v.srpb_heji - 0) + (v.sryzf_heji - 0) + (v.srgxf_heji - 0) + (v.srbjf_heji - 0)) - ((v.qsdz_heji - 0) + (v.qshc_heji - 0) + (v.qsjzx_heji - 0) + (v.qsyh_heji - 0) + (v.qsfz_heji - 0) + (v.qsjzxsy_heji - 0) + (v.qspb_heji - 0) + (v.qsyzf_heji - 0) + (v.qsgxf_heji - 0) + (v.qsbjf_heji - 0))).toFixed(2) - 0
                v.lirun = (((v.srdz_buhansui - 0) + (v.srhc_buhansui - 0) + (v.srjzx_buhansui - 0) + (v.sryh_buhansui - 0) + (v.srfz_buhansui - 0) + (v.srjzxsy_buhansui - 0) + (v.srpb_buhansui - 0) + (v.sryzf_buhansui - 0) + (v.srgxf_buhansui - 0) + (v.srbjf_buhansui - 0)) - ((v.qsdz_buhansui - 0) + (v.qshc_buhansui - 0) + (v.qsjzx_buhansui - 0) + (v.qsyh_buhansui - 0) + (v.qsfz_buhansui - 0) + (v.qsjzxsy_buhansui - 0) + (v.qspb_buhansui - 0) + (v.qsyzf_buhansui - 0) + (v.qsgxf_buhansui - 0) + (v.qsbjf_buhansui - 0))).toFixed(2) - 0
                v.total_price = ((v.qsdz_heji - 0) + (v.qshc_heji - 0) + (v.qsjzx_heji - 0) + (v.qsyh_heji - 0) + (v.qsfz_heji - 0) + (v.qsjzxsy_heji - 0) + (v.qspb_heji - 0) + (v.qsyzf_heji - 0) + (v.qsgxf_heji - 0) + (v.qsbjf_heji - 0)).toFixed(2) - 0
            })
            // columns.value.splice(columns.value.length - 3,0,...columnsArr)
            tableData.value = _data
            exportData.value = JSON.parse(JSON.stringify(_data))
            exportData.value.map((v,i)=>{
                v.transport_type = v.prediction.transport_type == 1?'集装箱':v.prediction.transport_type == 2?'整车':'批量快运'
                v.yundanhao = v.prediction.yundanhao || ''
                v.dept_name = v.dept.name || ''
                v.come_time = v.prediction.come_time || ''
                v.ticket_number = v.prediction.ticket_number || ''
                v.car_no = v.prediction.car_no || ''
                v.sending_station = handelDaofazhan(v.prediction.sending_station) || ''
                v.come_address = handelDaofazhan(v.prediction.come_address) || ''
                v.box = v.prediction.box || ''
                v.goods_name = v.prediction.goods_name || ''
                v.number = v.prediction.number || ''
                v.hz_weight = v.prediction.hz_weight || ''
                v.bz_weight = v.prediction.bz_weight || ''
                v.cyr_weight = v.prediction.cyr_weight || ''
                v.jf_weight = v.prediction.jf_weight || ''
                v.process_time = v.prediction.process_time || ''
                v.peisong_address = v.prediction.peisong_address?.name || ''
            })
            zongSize.value = res.data.pageInfo.total
            setTimeout(() => {
                loading.value = false
            }, 1000)
        }).catch(rej=>{
            loading.value = false
        })
}
const columns = ref([
    {
        title: '序号',
        dataIndex: 'xuhao',
        width:70,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        fixed:'left'
    },
    {
        title: '运单号',
        dataIndex: 'yundanhao',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'yundanhao',
        fixed:'left'
    },
    {
        title: '客户名称',
        dataIndex: 'dept_id',
        width:180,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'dept_id',
        fixed:'left'
    },
    {
        title: '到达时间',
        dataIndex: 'come_time',
        width:180,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        fixed:'left',
        slotName:'come_time',
    },
    {
        title: '原票号',
        dataIndex: 'ticket_number',
        width:180,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'ticket_number',
    },
    {
        title: '车号',
        dataIndex: 'car_no',
        width:140,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'car_no',
    },
    {
        title: '运输方式',
        dataIndex: 'transport_type',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'transport_type',
    },
    {
        title: '发站',
        dataIndex: 'sending_station',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'sending_station',
    },
    {
        title: '到站',
        dataIndex: 'come_address',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'come_address',
    },
    {
        title: '箱号',
        dataIndex: 'box',
        width:160,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'box',
    },
    {
        title: '品名',
        dataIndex: 'goods_name',
        width:180,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'goods_name',
    },
    
    
    
    {
        title: '件数',
        dataIndex: 'number',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'number',
    },
    {
        title: '货重',
        dataIndex: 'hz_weight',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'hz_weight',
    },
    {
        title: '标重',
        dataIndex: 'bz_weight',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'bz_weight',
    },
    {
        title: '承运人重量',
        dataIndex: 'cyr_weight',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'cyr_weight',
    },
    {
        title: '计费重量',
        dataIndex: 'jf_weight',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'jf_weight',
    },
    
    {
        title:'收入',
        children:[
            {
                title:'到站取送车费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srdz_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srdz_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srdz_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'货车延时占用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srhc_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srhc_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srhc_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'集装箱延时占用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srjzx_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srjzx_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srjzx_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'印花税',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'sryh_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'sryh_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'sryh_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'发站取送车费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srfz_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srfz_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srfz_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'集装箱使用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srjzxsy_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srjzxsy_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srjzxsy_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'篷布使用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srpb_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srpb_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srpb_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'运杂费迟交金',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'sryzf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'sryzf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'sryzf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'干线运输费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srgxf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srgxf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srgxf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'报价费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'srbjf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'srbjf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'srbjf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            }
        ],
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
    },
    {
        title:'清算',
        children:[
            {
                title:'到站取送车费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsdz_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsdz_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsdz_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'货车延时占用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qshc_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qshc_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qshc_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'集装箱延时占用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsjzx_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsjzx_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsjzx_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'印花税',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsyh_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsyh_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsyh_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'发站取送车费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsfz_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsfz_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsfz_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'集装箱使用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsjzxsy_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsjzxsy_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsjzxsy_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'篷布使用费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qspb_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qspb_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qspb_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'运杂费迟交金',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsyzf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsyzf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsyzf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'干线运输费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsgxf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsgxf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsgxf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            },{
                title:'报价费',
                headerCellStyle:{
                    background:'rgba(46,87,170,1)',
                    color:'#fff'
                },
                children:[
                    {
                        title:'合计',
                        dataIndex:'qsbjf_heji',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                        bodyCellStyle:{
                            color:'#168cff'
                        }
                    },
                    {
                        title:'不含税金额',
                        dataIndex:'qsbjf_buhansui',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                    {
                        title:'税额',
                        dataIndex:'qsbjf_suie',
                        ellipsis:true,
                        tooltip:true,
                        width:120,
                        headerCellStyle:{
                            background:'rgba(46,87,170,1)',
                            color:'#fff'
                        },
                    },
                ],
            }
        ],
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
    },
    {
        title: '利润(含税)',
        dataIndex: 'lirun_sui',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'lirun_sui',
        fixed:'right'
    },
    {
        title: '利润(不含税)',
        dataIndex: 'lirun',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        slotName:'lirun',
        fixed:'right'
    },
    {
        title: '合计金额',
        dataIndex: 'total_price',
        width:120,
        align:'center',
        ellipsis:true,
        tooltip:true,
        headerCellStyle:{
            background:'rgba(46,87,170,1)',
            color:'#fff'
        },
        fixed:'right'
    },
    
])

</script>
<style>

</style>
<script>

export default { name: "ledger:railwayLiquidation" };
</script>
